<?php
class View_Crumb{
	/**
	 * вывод крошек
	 */
	public static function displayCrumb($arrCrumb){
		$size = sizeof($arrCrumb);
		$str = '';
		for ($i = 0; $i < $size; $i++){
			if ($i+1 != $size)
				$str .=  '<a class="none" href="' . W_ABSPATH . $arrCrumb[$i][1] . '">';
			$str .=  $arrCrumb[$i][0];
			if ($i+1 != $size){				
				$str .=  '</a>';
				$str .=  ' → ';
			}
		}
		return $str;
	}
	
	/**
	 * получам title крошек
	 */
	public static function displayTitleCrumb($arrCrumb){
		foreach (array_reverse($arrCrumb) as $arrCrumb)
			$arrNew[] = $arrCrumb[0];
		return join(' / ', $arrNew);
	}
}
?>